home *** CD-ROM | disk | FTP | other *** search
- In a message of 16 Feb 96 Marcus Alanen wrote to All:
-
- >> Now to cycle I use the following code:
-
- MA> which I understand little of... Anyway, is there any possibility
- MA> to use *two* palettes one after another that are identical?
- MA> Like this: (number represents colour register, X position
- MA> is the "address")
-
- MA> 111111 111111
- MA> 01234567890123450123456789012345
-
-
- MA> So that you do a Palette() call from the beginning (x=0)
- MA> and then after each cycle add a constant to x, so that
- MA> the next Palette() information is taken from the address
- MA> x=2 or something like that.
-
- That's exactly what I was trying with my original SetRGB32() code. I had memory
- allocated to hold *2* copies of the palette, and to cycle I could just move the
- pointer of the start colour instead of having to shift all the colour data
- itself.
-
- However, with LoadRGB32() it's a little more difficult, since the first
- longword of the data always has to contain the number of colours to be set, and
- the number of the first colour. The list also has to be terminated by following
- it with another list with a colours-to-be-set value of zero. So it gets a bit
- more complicated, but still quite do-able. :)
-
- .\dam. [Team AMIGA] //\ ad32@brighton.ac.uk \\/
-
-